<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<form id="formNew" action="${pageContext.request.contextPath }/system/resource/new">
    <label for="name">资源名称</label>
    <div class="form-group">
        <div class="form-line">
            <input id="name" name="name" class="form-control" placeholder="填写资源名称">
        </div>
    </div>
    <label for="icon">资源图标</label>
    <div class="form-group">
        <div class="form-line">
            <input id="icon" name="icon" class="form-control" placeholder="填写基于Font Awesome的字体图标">
        </div>
    </div>
    <label for="url">URL</label>
    <div class="form-group">
        <div class="form-line">
            <input id="url" name="url" class="form-control" placeholder="填写访问资源的URL地址">
        </div>
    </div>
    <label for="type">资源类型</label>
    <div class="form-group">
        <div class="form-line">
           <select id="type" name="type" class="form-control show-tick">
           		<option value="1">菜单</option>
           		<option value="2">功能</option>
           </select>
        </div>
    </div>
    <label for="pid">父资源ID</label>
    <div class="form-group">
        <div class="form-line">
            <input id="pid" name="pid" class="form-control" placeholder="资源所属的父级资源编号">
        </div>
    </div>
    <label for="sort">资源显示序号</label>
    <div class="form-group">
        <div class="form-line">
            <input id="sort" name="sort" class="form-control" placeholder="资源在界面显示时排序的编号">
        </div>
    </div>
    <label for="description">资源描述</label>
    <div class="form-group">
        <div class="form-line">
            <textarea rows="4" id="description" name="description" class="form-control no-resize" placeholder="资源的描述信息"></textarea>
        </div>
    </div>

</form>

<script type="text/javascript">

	$(function(){
		$('#formNew select').selectpicker();
	});
	
</script>
